<form action="<?php echo BASE_PATH; ?>/users/signup" method="post" name="signup_form" id="signup_form" onsubmit="return validate_signup(this)">
    <label for="name">Full Name:</label>
    <input type="text" name="name" value="" id="name"/><br />

    <label for="username">User Name:</label>
    <input type="text" name="username" value="" id="username"/><br />

    <label for="password">Password:</label>
    <input type="password" name="password" value="" id="password"/><br />

    <label for="confirm_password">Password (again):</label>
    <input type="password" name="confirm_password" value="" id="confirm_password"/><br />

    <label for="dob">Date of Birth:</label>
    <input type="text" name="dob" value="" id="dob" onclick="displayDatePicker('dob');"/><br />

    <label for="email">Email:</label>
    <input type="text" name="email" value="" id="email"/><br />

    <label for="gender">Gender:</label>
    <select name="gender" id="gender">
        <option value="Male">Male</option>
        <option value="Female">Female</option>
    </select><br />

    <label for="location">Location:</label>
    <input type="text" name="location" value="" id="location"/><br />

    <label for="twitter">Twitter oAuth:</label>
    <span id="twitter-buttton-link">
        <a href="#" class="twitter-button" onClick="window.open('<?php echo BASE_PATH; ?>/users/integrate', 'twitter_integrate', 'width=814,height=465')">Sign in with Twitter</a>
    </span>
    <span id="twitter-user" style="display: none;">
        <a target="_blank" id="twitter-user-link" href=""></a>
        <a id="twitter-unlink" href="" onclick="return unlink();">(unlink)</a>
    </span>
    <input class="input-hidden" type="hidden" name="twitter_username" id="twitter_username" value="" id="twitter_username"/>
    <input class="input-hidden" type="hidden" name="oauth_token" id="oauth_token" value="" id="oauth_token"/>
    <input class="input-hidden" type="hidden" name="oauth_token_secret" id="oauth_token_secret" value="" id="oauth_token_secret"/><br /><br />

    <input type="submit" name="submit" id="submit" value="Sign Up" />
</form>
<script type="text/javascript">
    function unlink() {
        biji.select('#twitter-buttton-link').style.display = 'inline';
        biji.select('#twitter-user').style.display = 'none';
        biji.select('#twitter_username').value = '';
        biji.select('#oauth_token').value = '';
        biji.select('#oauth_token_secret').value = '';

        return false;
    }
</script>